package Test;

import java.util.Scanner;

/**
 * @author feng
 * @Date 2021/12/24 9:48
 */
public class TestSixOne {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串:");
        String s = sc.nextLine();
        System.out.println("字符串长度:" + s.length());
        System.out.println("第一个字符" + s.charAt(0));
        System.out.println("最后后一个字符:" + s.charAt(s.length()-1));

    }
}
